﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.Infrastructure;
using System.Data.SqlClient;

namespace RCSoft.Data
{
    public class SqlServerDataProvider:BaseEfDataProvider
    {
        /// <summary>
        /// 获取连接工厂
        /// </summary>
        /// <returns>连接工厂</returns>
        public override IDbConnectionFactory GetConnectionFactory()
        {
            return new SqlConnectionFactory();
        }

        /// <summary>
        /// 初始化数据库设计器
        /// </summary>
        public override void SetDatabaseInitializer()
        {
            //跳过初始化一些表以确保已经安装了老版本的软件
            var tablesToValidate = new[] { "Customer", "Order" };

            var customCommands = new List<string>();

            //customCommands.AddRange(ParseCommands(Environment.GetFolderPath
        }

        public override bool StroedProceduredSupported
        {
            get { return true; }
        }

        public override System.Data.Common.DbParameter GetParameter()
        {
            return new SqlParameter();
        }
    }
}
